package com.hyper_yang._03_designpatterns.principles.demo1;

/**
 * projectName: com.hyper_yang._03_designpatterns.principles.demo1
 *
 * @author: sakiko
 * time: 2025/9/26 0:12
 * description: 测试
 * 开闭原则 -> 对扩展开放、对修改关闭 【拓展新类而不是修改旧类】
 */
public class Test {
    public static void main(String[] args) {
        SouGouInput input = new SouGouInput();

//        DefaultSkin skin = new DefaultSkin();
        SakiSkin skin = new SakiSkin();

        input.setSkin(skin);

        input.display();
    }
}
